package cn.csq.design.creatation.singleton;

import java.util.Map;
import java.util.Properties;

public class MainTest {


    public static void main(String[] args) {

        Person person1 = Person.getInstance();
        System.out.println("person1 = " + person1);
        Person person2 = Person.getInstance();
        System.out.println("person2 = " + person2);

        System.out.println("person1 & person2 " + (person1 == person2));

        //获取当前系统的环境变量
        Map<String, String> map = System.getenv();
        System.out.println("map = " + map);
        //获取当前系统信息
        Properties properties = System.getProperties();
        System.out.println("properties = " + properties);



    }

}
